<template>
    <div class="cutImgBox">
        <div class="inimg" :style="{'background-image': `url(${url})`}"></div>
    </div>
</template>

<script>
import { reactive,toRefs,getCurrentInstance } from 'vue'
import {useRoute,useRouter} from 'vue-router'
import { useStore } from 'vuex'

export default {
    components:{
       
    },
    props:{
        url:String // 图片地址
    },
    setup(props,context){
        const router = useRouter()
        const route = useRoute()
        const store = useStore()
        const {proxy} = getCurrentInstance()

        const state = reactive({
            
        })

        return{
            ...toRefs(state)
        }
    }
}
</script>

<style lang="scss" scoped>
    .cutImgBox{
        width: 100%;
        height: 100%;
        padding: 8px;
        border:1px solid #67F8FF;
        .inimg{
            width: 100%;
            height: 100%;
            background-position: left top;
            background-repeat: no-repeat;
            background-size: cover;
            overflow: hidden;
        }
    }
</style>